package com.wnxy.service.impl;

import com.wnxy.mapper.UserMapper;
import com.wnxy.pojo.Article;
import com.wnxy.pojo.User;
import com.wnxy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }

    @Override
    public void add(User user) {
        userMapper.add(user);
    }

    @Override
    public void update(User user) {
        userMapper.update(user);
    }

    @Override
    public void delete(Integer id) {
        userMapper.delete(id);
    }

    @Override
    public void delBatch(List<Integer> ids) {
        userMapper.delBatch(ids);
    }
}
